package com.linln.modules.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**

 * @date 2021/11/13
 */
@Data
@TableName("biz_salary")
public class Salary implements Serializable {
    /**
     * 主键ID
     */

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    /**
     * 工资金额
     */

    @TableField("money")
    private Double money;
    /**
     * 发放日期
     */
    @TableField("pay_date")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date payDate;
    /**
     * 人员ID
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 备注
     */
    @TableField("remark")
    private String remark;
    @TableField("user_name")
    private String userName;

    @TableField(exist = false)
    private String payDateStr;


}